package com.mgblog.dao.imp;

import org.springframework.stereotype.Component;

import com.mgblog.dao.inter.ItemDaoInter;
import com.mgblog.vo.Item;

/**
 * item的dao
 * @author meigang 
 *
 */
@Component("itemDao")
public class ItemDao extends BaseDao implements ItemDaoInter{
	
	public boolean addItem(Item item){
		boolean b = true;
		try {
			save(item);
		} catch (Exception e) {
			// TODO: handle exception
			b=false;
		}
		return b;
	}
}
